using UnityEngine;

public class RefereeStateOpening : State<Referee>
{
	private static RefereeStateOpening instance;

	private RefereeStateOpening()
	{
	}

	public static RefereeStateOpening getInstance()
	{
		if (instance == null)
		{
			instance = new RefereeStateOpening();
		}
		return instance;
	}

	public override void enter(Referee owner)
	{
		base.enter(owner);
		owner.setPositon(Global.pos_JumpBall);
		owner.GetComponent<Animation>()[AnimationName.referee_jumpball].time = 0.01f;
		owner.playAnimation(AnimationName.referee_jumpball, 0f, -1f);
		owner.LookAt(-Vector3.right);
		Instance<Ball>.instance.getBallInHand(owner.trans_ball);
		Instance<Ball>.instance.do_dribble_stay();
	}
}
